import { Injectable } from '@angular/core';
import { Storage } from '@ionic/storage';
import {HttpClient} from "../../../../providers/httpClient";
import {Config} from "../../../../providers/config";
import {Common} from "../../../../providers/common";

@Injectable()
export class IrpQjtMainService {
	constructor(
		public httpClient: HttpClient,
		public config: Config,
    public storage: Storage,
    public common: Common
		) { }

  getAllReportAllData() {
	  let postBody = {
      "module": "OAServer",
      "method": "getIRMAllReportInfo",
      "params": {
      }
    };
	  return this.httpClient.post(postBody, {
	    isShowLoading: true
    });
  }
  getAllReportBusinessData(orgid,startdate,enddate) {
    let postBody = {
      "module": "OAServer",
      "method": "getIRMOnBusiness",
      "params": {
        orgid: orgid,
        startDate:startdate,
        endDate:enddate
      }
    };
    return this.httpClient.post(postBody, {
      isShowLoading: true
    });
  }

}
